//
//  ViewController.swift
//  wxDemo
//
//  Created by dongjun on 15/11/28.
//  Copyright © 2015年 dongjun. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        let btn = UIButton(frame: CGRectMake(20,100,100,30))
        btn.setTitle("微信支付", forState: UIControlState.Normal)
        btn.backgroundColor = UIColor.blueColor()
        btn.setTitleColor(UIColor.whiteColor(), forState: UIControlState.Normal)
        self.view.addSubview(btn)
        
        btn.addTarget(self, action: Selector("pay"), forControlEvents: UIControlEvents.TouchUpInside)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func pay(){
    
        let str = AppHander.jumpToBizPay() as String
        
        print(str)
    }


}

